@import url('https://fonts.googleapis.com/css?family=Montserrat:200|Montserrat:300|Work+Sans:400&display=swap');

html, body{
    margin: 0;
    padding: 0;
}

body {
    font-family: Montserrat, Arial, sans-serif;
    overflow: hidden;
}

canvas{
    width: 100vw;
    height: 100vh;
    padding: 0;
}

button{
    border: 1px solid gray;
    background-color: white;
    border-radius: 2px;

    transition: 0.2s;
    margin: 0.25em;
}

button:hover {
    background-color: #f1f1f1;
}

input[type=color]{
    padding: 0;
    border: none;
    width: 1.5em;
    height: 1.75em;
    background: transparent;
    vertical-align: middle;
}

input[type=checkbox]{
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid black;
    width: 1em;
    height: 1em;
    border-radius: 2px;
    transition: 0.2s;
    vertical-align: middle;
}

input[type=checkbox]:checked{
    background-color: #0061ff;
}

input[type=text], input[type=number]{
    font-family: Montserrat, Arial, sans-serif;
}

.toolbar{
    background: white;
    font-size: 1.15vh;
    width: 100vw;
    height: 18vh;
    padding: 0.5em;

    position: fixed;
    bottom: 0;
    left: 0;

    opacity: 0.4;
    transition: 0.2s;

    display: grid;
    grid-template-columns: repeat(4, calc(100% / 4));
}

.toolbar h3{
    font-size: 160%;
    width: 100%;
    text-align: center;
    font-family: "Work Sans Light", Arial, sans-serif;
    font-weight: 200;
}

.toolbar:hover{
    opacity: 1;
}

.toolbar.hidden{
    left: 90vw;
}

.toolbar > div{
    height: 15vh;
    padding-top: 0;
}

.toolbar > div.scroll{
    overflow-y: scroll;
}

.toolbar button.tool{
    width: 3em;
    height: 3em;
    box-shadow: 2px 2px 3px black;
    padding: 0.1em;
    margin: 0.25em;
    background: white;
    border: none;
}

.toolbar button.align{
    width: 4em;
    padding: 0.2em;
    background-color: white;
    font-size: 75%;
    border: none;
}

.toolbar button.palette{
    width: 1.2vh;
    height: 1.2vh;
    margin: -1px;
    padding: 0;
    border: none;
}

.toolbar img{
    width: 100%;
    height: 100%;
}

.toolbar .image-select button{
    width: 3em;
    height: 3em;
    background-color: transparent;
    border: 1px solid black;
    padding: 0;
    margin: 0.5em;
}
